Skip to content

templates/make: set required minimum version to 3.5 - #113

Merged
MingcongBai merged 1 commit into
masterfrom
cmake-compatibility
Sep 16, 2026
Merged

MingcongBai merged 1 commit into
masterfrom
cmake-compatibility

Conversation

@stydxm

@stydxm stydxm commented Sep 15, 2026

Copy link
Copy Markdown
Member

A large number of projects would still build with CMake >= 4.0 with
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 specified. Most projects simply never
updated their CMake policy version requirement, throwing this error during
build time:

  CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

    Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    to tell CMake that the project requires at least <min> but has been updated
    to work with policies introduced by <max> or earlier.

    Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

A large number of projects would still build with CMake >= 4.0 with
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 specified. Most projects simply never
updated their CMake policy version requirement, throwing this error during
build time:

  CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

    Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    to tell CMake that the project requires at least <min> but has been updated
    to work with policies introduced by <max> or earlier.

    Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

Co-authored-by: Mingcong Bai <jeffbai@aosc.io>
@MingcongBai
MingcongBai merged commit aafa449 into master Sep 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants